package com.greenold.dashboard.domain.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author YueYang
 * Created on 2025/10/17 11:41
 * @version 1.0
 * 前端工作台饼图响应数据
 */

public class TopPieVO {

    /**
     * 饼图标题key
     */
    private String key;

    /**
     * 饼图标题
     */
    private String title;

    /**
     * 饼图单位
     */
    private String unit;

    /**
     * 饼图数据总数
     */
    private Long total;

    /**
     * 饼图数据
     */
    private List<TopPieDataVO> data = new ArrayList<>();


    public TopPieVO() {
    }

    public TopPieVO(String key, String title, String unit, Long total, List<TopPieDataVO> data) {
        this.key = key;
        this.title = title;
        this.unit = unit;
        this.total = total;
        this.data = data;
    }

    /**
     * 获取
     *
     * @return key
     */
    public String getKey() {
        return key;
    }

    /**
     * 设置
     *
     * @param key
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * 获取
     *
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     *
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     *
     * @return unit
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 设置
     *
     * @param unit
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 获取
     *
     * @return total
     */
    public Long getTotal() {
        return total;
    }

    /**
     * 设置
     *
     * @param total
     */
    public void setTotal(Long total) {
        this.total = total;
    }

    /**
     * 获取
     *
     * @return data
     */
    public List<TopPieDataVO> getData() {
        return data;
    }

    /**
     * 设置
     *
     * @param data
     */
    public void setData(List<TopPieDataVO> data) {
        this.data = data;
    }

    public String toString() {
        return "TopPieVO{key = " + key + ", title = " + title + ", unit = " + unit + ", total = " + total + ", data = " + data + "}";
    }
}
